<?php



	use think\Loader;

	
/**
 * 导入数据code
 */	
	
function insertFunc(){
    $num = 1;
    $func = function($data) use($num){
    	
		if(!empty($data)){
			foreach($data as $key => $value ){
				
				foreach($data[$key] as $k => $v){
					
					$da[$key][$k]=$v;
					
				}
	
			}	
			//print_r($da)."<br/>";
			
			foreach($da as $v2){
				Loader::model("SecurityCode")->insert($v2);
			}						
		}
    };
    return $func;
}	
	
?>